<html>
  <head>
    <title>getVoucherByProperty.html</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<link href="../../css/general1.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/vchzms-hiaward/dwr/engine.js"> </script>
	<script type="text/javascript" src="/vchzms-hiaward/dwr/util.js"> </script>
	<script type="text/javascript" src="/vchzms-hiaward/dwr/interface/VoucherServiceImpl.js"> </script>
	<script type="text/javascript" src="../../script/include.js"></script>
	<script type="text/javascript" src="../../script/prototype.js"></script>
	<script type="text/javascript">
		function subForm(){
		    var accnoTemp=dwr.util.getValue('accno');
		    var amountTemp=dwr.util.getValue('amount');
		    var vchnoTemp=dwr.util.getValue('vchno');
		    var depnoTemp=dwr.util.getValue('depno');
		    var chkstateTemp=dwr.util.getValue('chkstate');
		    var obj={
		    accno:accnoTemp,
		    amount:amountTemp,
		    vchno:vchnoTemp,
		    subno:depnoTemp,
		    chkstate:chkstateTemp
		    }
		    //alert(obj.accno);
		    VoucherServiceImpl.listVoucherInstances(obj,function(data){
              //alert(data.size);
		      for(var i=0;i<data.length;i++){
		       	//alert(i);
		        //alert(data[i]);
		      }
		    
		    });
		
		}
		
		//function subForm(){
		//	sendQueryMsg();
		//}
	</script>
  </head>
  
  <body>
    <table>
      <tr>
        <td colspan="2">输入查询条件</td> 
      </tr>
      <tr>
        <td>帐号：</td>
        <td><input type="text" name="accno" id="accno"/></td>
      </tr>
       <tr>
        <td>金额：</td>
        <td><input type="text" name="amount" id="amount"></td>
      </tr>
       <tr>
        <td>凭证号：</td>
        <td><input type="text" name="vchno" id="vchno"/></td>
      </tr>
      <tr>
        <td>分行号：</td>
        <td><input type="text" name="depno" id="depno"/></td>
      </tr>
       <tr>
        <td>审票状态：</td>
        <td><input type="text" name="chkstate" name="chkstate" id="chkstate"/></td>
      </tr>
    </table>
    <input type="button" name="submit" value="查询" onClick="subForm()">
    <div id="content"></div>
  </body>
</html>
